package com.java.dp.observe;

/**
 * @Author lizhilong
 * @create 2019/12/10 18:01
 * @desc 观察主题实现
 */
public class GirlSubject extends Subject {
    @Override
    public void notify(String message) {
        observers.forEach(e -> e.update(message));
    }
}
